package models

import "github.com/edgexfoundry/go-mod-core-contracts/v2/models"

type Device struct {
	models.Device
	RegisterTime string
	NodeType     int //1 设备 2 网关
	Enable       bool
	Code         string
	ProductId    string
	ProfileId    string
	ProductName  string
	DisplayName  string
	AutoEvents   []AutoEvent
}

type AutoEvent struct {
	models.AutoEvent
	Id         string
	SourceCode string
	SourceType int
}

type Transport struct {
	Id          string
	Name        string
	Type        string
	Topic       string
	Description string
}

type DeviceCount struct {
	Total   uint32
	Online  uint32
	Offline uint32
}
